﻿//load xml formated information
function loadXml(processId) {
    if (processId == "") return;
    var xml = ns.GetXml(processId).value;
    $id("xmlholder").innerHTML = xml;
}
//load html information
function loadHtml(processId) {
    if (processId == "") return;
    var html = ns.GetHtml(processId).value;
    $id("mainCanvas").innerHTML = html;
    
}

function loadPorcess() {
    loadXml("548");
    loadHtml("548");
    resetVar();
    initPageObjects();
    bindActClick();
}

//给活动绑定点击事件

function bindActClick() {
    var acts = $more("divwf");
    if (!acts) return;
    var count = acts.length;
    for (var i = 0; i < count; i++) {
        acts[i].onclick = function() {
            mageMttrs(acts[i]);
        };
    }
}